package com.example.normal.config;

import com.example.normal.entity.Student;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@Configuration
@Data
public class TestConfig {

    @Value("${wahoyu.my-config:defaultConfig}")
    private String myConfig;

    @Value("${wahoyu.my-config1:defaultConfig}")
    private String myConfig1;


    @Bean
    public String getMyConfigByMethod() {
        return myConfig;
    }

}
